//
//  ZPFLoginViewController.m
//  ZPFHimalayan
//
//  Created by zhou on 2018/11/29.
//  Copyright © 2018 MissZhou. All rights reserved.
//

#import "ZPFLoginViewController.h"

@interface ZPFLoginViewController ()

@end

@implementation ZPFLoginViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    YYLabel *skipBtn = [[YYLabel alloc] initWithFrame:CGRectMake(0, 400, 150, 60)];
    skipBtn.text = @"跳过登录";
    skipBtn.font = SYSTEMFONT(20);
    skipBtn.textColor = [UIColor blueColor];
    skipBtn.backgroundColor = [UIColor clearColor];
    skipBtn.textAlignment = NSTextAlignmentCenter;
    skipBtn.textVerticalAlignment = YYTextVerticalAlignmentCenter;
    skipBtn.centerX = SCREEN_WIDTH/2;
    //    kWeakSelf(self);
    kWeakSelf(self);
    skipBtn.textTapAction = ^(UIView * _Nonnull containerView, NSAttributedString * _Nonnull text, NSRange range, CGRect rect) {
        //        [MBProgressHUD showTopTipMessage:NSStringFormat(@"%@马上开始",str) isWindow:YES];
        
        [weakself skipAction];
    };
    
    [self.view addSubview:skipBtn];
}


-(void)skipAction{
    kPostNotification(KNotificationLoginStateChange, @YES);
}

@end
